package com.starmark.gateway.project.provider.dto;

import lombok.Data;
import org.springframework.lang.Nullable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author starmark
 * @since  20-1-23  上午9:39
 */

@Data
public class GatewayProjectDto implements Serializable {

    private String id;
    /**
     * 工程ID
     */
    private String projectCode;

    /**
     * 工程ID名称
     */
    private String name;
    /**
     * 密钥
     */
    private String salt;


    private long expireTime;


    /**
     * 登陆地址
     */
    private String loginAddress;

    /**
     * 刷新token时间
     */
    private int tokenRefreshInterval;

    /**
     * 匿名地址
     */
    private List<String> annoUrl=new ArrayList<>();



    @Nullable
    private List<String> allowedOrigins;

    @Nullable
    private List<String> allowedMethods;

    @Nullable
    private List<String> allowedHeaders;

    @Nullable
    private List<String> exposedHeaders;

    @Nullable
    private Boolean allowCredentials;
}
